@extends("/menu_template",menu=menu,noMenu=noMenu)
@import com.mgfireworks.mgplatform.mgshop.model.*;
@args String menu, Boolean noMenu
@args ShopUserVo user
@section(offside){
	<div class="mui-row">
		<button type="button" class="mui-col-xs-12 mui-btn mui-btn-danger">个人中心</button>
	</div>
	<div class="mui-row user_info">
		@if(user){
        <img class="mui-col-xs-5 head_img" src="@user.getHeadimgurl()"/>
        <div class="mui-col-xs-6">@user.getNickname()</div>
		}else{
		<a class="mui-btn mui-btn-block mui-btn-primary" href="@url("/login.html")">去登录</a>
		}
	</div>
	<ul class="mui-table-view">
		<li class="mui-table-view-cell">
			<a class="mui-navigate-right">
				设置收货地址
			</a>
		</li>
		<li class="mui-table-view-cell">
			<a class="mui-navigate-right">
				我的购物车
			</a>
		</li>
		<li class="mui-table-view-cell">
			<a class="mui-navigate-right">
				我的订单
			</a>
		</li>
	</ul>
}
@section(header){
	<div class="mui-row">
		<a class="mui-icon mui-icon-bars mui-pull-left" href="#jsOffCanvasSide"></a>
		<input id="jsInputSearch" class="mui-input-clear search-input mui-col-xs-8" placeholder="请输入产品名或分类"/>
		<a href="#" class="mui-pull-right top-address-set"><i class="mui-icon mui-icon-location"></i><label id="spanClientAddress">位置</label></a>
	</div>
}
@render()